import random

# 定义猜拳选项
options = ["石头", "剪刀", "布"]

# 电脑随机出拳
computer = random.choice(options)

# 玩家输入自己的选择
player = input("请输入'石头', '剪刀'或者'布': ")

print(f"电脑的选择: {computer}")
print(f"玩家的选择: {player}")

# 判断输赢
if player == computer:
    print("平局！")
elif (player == "石头" and computer == "剪刀") or \
     (player == "剪刀" and computer == "布") or \
     (player == "布" and computer == "石头"):
    print("玩家胜利！")
elif (player == "石头" and computer == "布") or \
     (player == "剪刀" and computer == "石头") or \
     (player == "布" and computer == "剪刀"):
    print("电脑胜利！")
else:
    print("输入错误，请输入'石头', '剪刀'或者'布'")